﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="WebsiteBanHang._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="SanPham" runat="server" ContentPlaceHolderID="Content1">
    <div>
        <h3>
            Sản phẩm</h3>
    </div>
    <div class="clear">
    </div>
    <table width="100%" cellpadding="0" bodercolor="#e6e6e6" border="0" style="border-collapse: collapse;"
        id="table20">
        <tbody>
            <tr>
                <td>
                    <table width="100%" cellspacing="1" cellpadding="0" border="0" id="table21">
                        <tbody>
                            <tr>
                                <td>
                                    <table width="100%" cellspacing="1" cellpadding="0" border="0" id="table22">
                                        <tbody>
                                            <asp:ListView ID="listview_products" runat="server" GroupItemCount="4" DataKeyNames="MaLoaiSanPham">
                                                <GroupTemplate>
                                                    <tr>
                                                        <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
                                                    </tr>
                                                    <tr>
                                                        <td height="5" valign="middle" background="../images/line_n.gif" align="center">
                                                        </td>
                                                        <td width="5" height="5" align="center">
                                                        </td>
                                                        <td height="5" valign="middle" background="../images/line_n.gif" align="center">
                                                        </td>
                                                        <td width="5" height="5" align="center">
                                                        </td>
                                                        <td height="5" valign="middle" background="../images/line_n.gif" align="center">
                                                        </td>
                                                        <td width="5" height="5" align="center">
                                                        </td>
                                                        <td height="5" valign="middle" background="../images/line_n.gif" align="center">
                                                        </td>
                                                        <td width="5" height="5" align="center">
                                                        </td>
                                                    </tr>
                                                </GroupTemplate>
                                                <ItemTemplate>
                                                    <td valign="top" align="center" style="width: 185px; height: 184px;">
                                                        <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td border="solid 1px #00518C;" valign="top" align="center" style="padding-top: 5px;">
                                                                        <a href="ChiTietSanPham.aspx?MaSanPham=<%# Eval("MaSanPham") %>">
                                                                            <img src='../images/<%# Eval("HinhAnh") %>' height="120" width="120" border="0" /></a>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="center" style="color: rgb(63, 63, 63); padding: 5px 0pt 0pt 5px;">
                                                                        <strong>
                                                                            <%# Eval("TenSanPham")%></strong>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="center" style="color: rgb(63, 63, 63); padding: 5px 0px;">
                                                                        <span class="price">Giá:
                                                                            <%# Eval("GiaBan") %>
                                                                            VND</span><a href="Default.aspx"><img src="images/icon-cart-watch.jpg" class="productdetail" /></a>
                                                                        <a href="ChiTietSanPham.aspx?MaSanPham=<%# Eval("MaSanPham") %>">
                                                                            <img src="images/but_chitiet.gif" /></a>
                                                                    
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <a href="SuaSanPham.aspx?MaSanPham=<%# Eval("MaSanPham") %>">Sua</a>                                                                   
                                                                   
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                    <td width="5" valign="middle" background="../images/line_d.gif" align="center">
                                                        &nbsp;
                                                    </td>
                                                </ItemTemplate>
                                            </asp:ListView>
                                            <!-- Thu hien lam -------------------------------- -->
                                            <Script language="javascript" type="text/javascript">
                                           
                                                function ConfirmDelete() {
                                                    return window.confirm("Do you want to delete?");
                                                }
                                            </Script>
                                            
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    <div class="paginator">
        <div class="pager">
            <div class="amount">
                Mặt hàng có từ 1 tới 12 sản phẩm trong tổng số 20</div>
            <div class="limiter">
                <label>
                    Hiển thị</label>
                <select>
                    <option class="selected">12</option>
                    <option class="selected">16</option>
                    <option class="selected">20</option>
                </select>
                trên trang
            </div>
            <div class="pages">
            </div>
        </div>
    </div>
    <br />
    <div class="full-items-sub">
        <h3>
            sản phẩm khuyến mãi</h3>

        <asp:Repeater ID="Repeater1" runat="server">
            <HeaderTemplate>
                <table style="height: 140px; margin: 0 12px 0 12px">
                    <tbody>
                        <tr>
            </HeaderTemplate>

            <ItemTemplate>
                            <td>
                                <div class="full-items-sub-item">
                                    <img src="../images/<%# Eval("HinhAnh") %>" height="120" width="120" alt="máy ảnh" /></div>
                            </td>
            </ItemTemplate>

            <FooterTemplate>
                        </tr>
                    </tbody>
                </table>
            </FooterTemplate>
        </asp:Repeater>

        <div class="view">
            <a href="Default.aspx" class="view-more">--Xem thêm--</a></div>
    </div>
    <br />
    <div class="full-items-sub">
        <h3>
            sản phẩm mới</h3>

        <asp:Repeater ID="Repeater2" runat="server">
            <HeaderTemplate>
                <table style="height: 140px; margin: 0 12px 0 12px">
                    <tbody>
                        <tr>
            </HeaderTemplate>
            <ItemTemplate>
                            <td>
                                <div class="full-items-sub-item">
                                    <img src="../images/<%# Eval("HinhAnh")%>" height="120" width="120" alt="Bông tai" /></div>
                            </td>
            </ItemTemplate>
            <FooterTemplate>
                        </tr>
                    </tbody>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        
        <div class="view">
            <a href="Default.aspx" class="view-more">--Xem thêm--</a></div>
    </div>
    <br />
    <br />
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
</asp:Content>
